import request from '@/utils/request'


/**新增租户角色-平台*/
export function insertP(data) {
  return request({
    url: '/distribution/roleDistr/insertP',
    method: 'post',
    data
  })
}

/**修改租户角色-平台*/
export function editP(data) {
  return request({
    url: '/distribution/roleDistr/editP',
    method: 'post',
    data
  })
}

/**删除租户角色信息-平台*/
export function deleteP(data) {
  return request({
    url: '/distribution/roleDistr/deleteP',
    method: 'post',
    data
  })
}

/**查询平台用户 */
export function getPlatformUserList(params) {
  return request({
    url: `/distribution/user/getPlatformUserList`,
    params
  })
}


/**修改平台用户 */
export function updatePlatformUser(data) {
  return request({
    url: `/distribution/user/updatePlatformUser`,
    method: 'POST',
    data
  })
}

/**删除用户 */
export function delUserByUserId(data) {
  return request({
    url: `/distribution/user/delUserByUserId/`,
    method: 'POST',
    data
  })
}

/**新增平台用户 */
export function insertPlatformUser(data) {
  return request({
    url: `/distribution/user/insertPlatformUser`,
    method: 'POST',
    data
  })
}
